#ifndef SETTINGS_H
#define SETTINGS_H

#include <string>
#include <map>
#include "dvar.h"

//static const char* SETTINGS_FILE = "game.settings";
static std::map<std::string, Dvar*> Dvars;

void initSettings();
//void loadSettings(); //load from ini file
std::string getString(std::string name);
int getInt(std::string name);
bool getBool(std::string name);


void addDvar(std::string name, std::string value);
void addDvar(std::string name, int value);
void addDvar(std::string name, bool value);
void editDvar(std::string name, std::string value);
void editDvar(std::string name, int value);
void editDvar(std::string name, bool value);
void resetDvar(std::string name);
bool exists(std::string name, int type);
bool exists(std::string name);

#endif // SETTINGS_H
